<template>
  <div id="app">


    <router-view></router-view>
    <van-loading class="loading" type="spinner" color="#1989fa" v-if="isShow" />

  </div>
</template>

<script>

import Vue from "vue";
import { Loading } from "vant";

Vue.use(Loading);


export default {
  name: "App",
  components: {
  },
  computed: {
    isShow: function () {
      return this.$store.state.isLoading;
    },
  },
};
</script>

<style>
.loading {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

}
</style>


